package lab02.test03;

/**
 * Created by lenovo on 2017/10/13.
 */
public class Student {
    String name;
    float computer;
    float english;
    float math;
    public float total(){
        return computer+english+math;
    }
    public float avarae(){
        float sum=computer+english+math;
        return sum/3;
    }
    public float topScore(){
        float max1=(computer>english)?computer:english;
        float max=(max1>math)?max1:math;
        return max;
    }
    public float lowestScore(){
        float small1=(computer<english)?computer:english;
        float small=(small1<math)?small1:math;
        return small;
    }
    public void print(){
        System.out.println("name:"+name);

    }

}
